//
//  MKRefreshHeaderView.h
//  Category
//
//  Created by Burn on 2020/1/6.
//  Copyright © 2020 menksoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RefreshView.h"

@protocol RefreshStatusProtocol <NSObject>

@required

/// 正在拉动
/// @param offset 里边缘的距离
- (void)viewPullingWithOffset:(CGFloat)offset;

/// 松开手立即刷新
- (void)viewWhenFreeReload;

/// 正在刷新
- (void)viewReloading;
@end


NS_ASSUME_NONNULL_BEGIN

@interface MKRefreshHeaderView : RefreshView

@property(strong,nonatomic) UIView<RefreshStatusProtocol> *customHeader;

+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;


- (void)endRefreshing;
@end

NS_ASSUME_NONNULL_END
